package com.senven.books.modules.booksManager.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.senven.books.mybatis.baseEntity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
@ApiModel
@TableName("book")
public class Book extends BaseEntity {

    @ApiModelProperty(value = "书名")
    private String title;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "类别")
    private String category;

    @ApiModelProperty(value = "上架日期")
    private Date publishedDate;

    @ApiModelProperty(value = "出版社")
    private String press;

    @ApiModelProperty(value = "价格")
    private double price;


}
